import { createSlice } from '@reduxjs/toolkit'

export const ticketSlice = createSlice({
  name: 'ticket',
  initialState: {
    from:'北京',
    to:'上海',
    onlyGT:false
  },
  reducers: {
    updateOnlyGt(state,action){
        
    }
  },
})

// Action creators are generated for each case reducer function
export const { updateOnlyGt } = ticketSlice.actions

export default ticketSlice.reducer